class CitasController < ApplicationController

  def index    
  end

  def create
    @cita = Cita.new(params[:cita])
    
    respond_to do |format|
      if @cita.save
        flash[:notice] = "Tu cita ha sido registrada." 
        format.html { redirect_to main_path}
      else
        format.html { render :action => 'index'}
      end
    end
  end

end